Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DUOS-2898] Switch more hyperscript-helpers to JSX #2470

Merged
merged 10 commits into from
Feb 29, 2024

Conversation

fboulnois
Copy link
Contributor

@fboulnois fboulnois commented Feb 27, 2024

Addresses

https://broadworkbench.atlassian.net/browse/DUOS-2898

Summary

Follow up to #2397 and #2438 . Switches more components from react-hyperscript-helpers to JSX.

Note: now that we are getting down to the last set of components, some of the code requires functional changes to work. Please test these out.


Have you read Terra's Contributing Guide lately? If not, do that first.

  • Label PR with a Jira ticket number and include a link to the ticket
  • Label PR with a security risk modifier [no, low, medium, high]
  • PR describes scope of changes
  • Get a minimum of one thumbs worth of review, preferably two if enough team members are available
  • Get PO sign-off for all non-trivial UI or workflow changes
  • Verify all tests go green
  • Test this change deployed correctly and works on dev environment after deployment

@fboulnois fboulnois force-pushed the fb-duos-2898-hyperscript-to-jsx branch from 461a486 to 5daddbc Compare February 27, 2024 19:10
@fboulnois fboulnois marked this pull request as ready for review February 27, 2024 19:11
@fboulnois fboulnois requested a review from a team as a code owner February 27, 2024 19:11
aria-haspopup="true"
aria-expanded="false"
onClick={onOpen}
disabled={disabled}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like this attribute is not allowed here (and indeed, there are other non-standard attributes scattered across the older hyperscript), but I favor keeping this (and others) here to lessen the potential for regressions.

<div className='data-update-section'>
<h2>1. Dataset Information</h2>
<FormField
id="datasetName"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm curious about the double quotes not triggering our eslint rule:

"quotes": ["warn", "single", {"avoidEscape": true, "allowTemplateLiterals": true}], // Checks for single quote usage where possible

Not critical for this PR, but we should investigate.

Copy link
Contributor

@rushtong rushtong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! 👍🏽

Copy link
Contributor

@aarohinadkarni aarohinadkarni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@fboulnois fboulnois merged commit 69ee25d into develop Feb 29, 2024
9 checks passed
@fboulnois fboulnois deleted the fb-duos-2898-hyperscript-to-jsx branch February 29, 2024 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants